<template>
    <div class="no-content">
        <div>
            <img src="/no-data@2x.png" />
            <div class="text-container">
                {{ content }}
            </div>
        </div>
    </div>
</template>

<script setup lang="ts">
import { computed } from "vue";
const props = defineProps({
    content: String,
});
const content = computed(() => props.content || "抱歉，暂无数据");
</script>

<style lang="scss" scoped>
.no-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    //   padding: 40px 0;
    img {
        display: inline-block;
        width: 200px;
        height: 169px;
    }
    .text-container {
        margin-top: 30px;
        width: 200px;
        text-align: center;
        color: rgba(27, 24, 27, 0.7);
    }
}
</style>
